package com.baizhi.service.impl;

import com.baizhi.service.DemoService;
import org.springframework.stereotype.Service;

// @Component
@Service("demoService")    // 默认工厂中名称为，类名首字母小写
public class DemoServiceImpl implements DemoService {

    @Override
    public void demo() {
        System.out.println("demo service ok");
    }
}
